package com.aixin.csopequity.domain;


import lombok.*;

import javax.persistence.*;
import java.time.Instant;
import java.util.List;

@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "configequity")
public class ConfigEquity {

    @Id
    private String equityID; //权益ID
    private String equityName;//权益名称
    private int equityType;//权益类型
    private int equityStatus;//权益状态
    private String remark;//权益备注
    private Instant createTime;//创建时间
    private Instant updateTime;//修改时间
    private String businessCode;

    @OneToMany(mappedBy = "equityID")
    @OrderBy("equityLevel ASC")
    private List<EquityLevelDef> equityLevelDef;
}
